Skip to content

Add hypercall_filter.py test under host_sb for 9.0 - #637

Draft
CocoElAbricot wants to merge 1 commit into
masterfrom
cop/9-HostSB
Draft

Add hypercall_filter.py test under host_sb for 9.0#637
CocoElAbricot wants to merge 1 commit into
masterfrom
cop/9-HostSB

Conversation

@CocoElAbricot

Copy link
Copy Markdown

This PR adds a test covering the hypercall filter functionality.

This is my first contribution to the xcp-ng test suite, so I'd appreciate guidance on best practices, test structure, naming conventions, or anything I might be missing to align with the project's standards.

@CocoElAbricot
CocoElAbricot requested a review from dinhngtu July 21, 2026 09:37
Comment thread tests/host_sb/test_hypercall_filter.py Outdated
Comment thread tests/host_sb/test_hypercall_filter.py Outdated
Comment thread tests/host_sb/test_hypercall_filter.py Outdated

# Requirements:
# - one XCP-ng host (--host) >= 9.0
# - Host Secureboot enforcement must be enabled

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the case, you should verify it with a fixture. Optionally, also check if the Secure Boot keys etc. are in place.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this test go into tests/xen or is it better as a separate component?

Comment on lines +29 to +31
local_binary = pathlib.Path(__file__).parent / "data" / "test_hypercall_filter"

remote_binary = "/tmp/test_hypercall_filter"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth discussing a better way to produce and host this sort of test binaries. At least, this test should link to the relevant tool repo.

@CocoElAbricot

Copy link
Copy Markdown
Author

Last force push: Just using plain host.ssh, added SB state check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants